package com.anlogic.sdk.bsp.settings;

import java.util.ArrayList;
import java.util.List;

public class NavItem {
	private String name;

	private List<NavItem> children;

	private int contentType;

	private NavItem parent;

	public NavItem(String name) {
		setName(name);
		this.children = new ArrayList<NavItem>();
	}

	public void addChild(NavItem c) {
		this.children.add(c);
		c.setParent(this);
	}

	public void removeChild(NavItem c) {
		this.children.remove(c);
		c.setParent(null);
	}

	public List<NavItem> getChildren() {
		return this.children;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return this.name;
	}

	public void setContentType(int contentType) {
		this.contentType = contentType;
	}

	public int getContentType() {
		return this.contentType;
	}

	public void setParent(NavItem parent) {
		this.parent = parent;
	}

	public NavItem getParent() {
		return this.parent;
	}
}
